import request from '@/utils/request'

// 查询客户台账列表
export function listCustomInvest(query) {
  return request({
    url: '/bill/customInvest/list',
    method: 'get',
    params: query
  })
}
// 补录台账
export function record(data) {
  return request({
    url: '/bill/customInvest/record',
    method: 'post',
    data: data
  })
}
// 查询客户台账详细
export function getCustomInvest(id) {
  return request({
    url: '/bill/customInvest/' + id,
    method: 'get'
  })
}

// 新增客户台账
export function addCustomInvest(data) {
  return request({
    url: '/bill/customInvest',
    method: 'post',
    data: data
  })
}

// 修改客户台账
export function updateCustomInvest(data) {
  return request({
    url: '/bill/customInvest',
    method: 'put',
    data: data
  })
}

// 删除客户台账
export function delCustomInvest(id) {
  return request({
    url: '/bill/customInvest/' + id,
    method: 'delete'
  })
}
